#!/bin/bash -e

function info() {
echo Usage: `basename $0` [-pf] [-t]
exit 2
}

while getopts  ":p:f:t" opt; do
	case  $opt  in
		p) prefix=$OPTARG;;
		f) suffix=$OPTARG;;
        t) nomake=T;;
		*) info;;
	esac
done
shift $(($OPTIND - 1))


datee=`date +h%Hm%Ms%S_m%md%d_%y`
if test -n "$prefix"; then prefix=$prefix.; fi
if test -n "$suffix"; then suffix=.$suffix; fi

if test -z "$nomake"; then
mkdir $prefix$datee$suffix
fi
echo $prefix$datee$suffix